package A9_19calculator;

import java.util.Scanner;

public class Calculatortest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Calculator x=new Calculator();

        System.out.print("选择加 减 乘 除还是求 立方 或符号其中一个输入:");
        String aaaa=in.next();
        System.out.print("请输入要算的数:");
        if (aaaa.equals("立方")){
            double aa=in.nextDouble();
            System.out.println(x.Int(aa));
        }else {
            double aa=in.nextDouble();
            double aaa=in.nextDouble();
            System.out.println(x.Int(aa,aaa,aaaa));
        }
    }
}
